package com.ruoyi.article.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.article.mapper.ArticleCategoryReferencedMapper;
import com.ruoyi.article.domain.ArticleCategoryReferenced;
import com.ruoyi.article.service.IArticleCategoryReferencedService;

/**
 * 文章分类 Service业务层处理
 * 
 * @author rey
 * @date 2022-02-04
 */
@Service
public class ArticleCategoryReferencedServiceImpl implements IArticleCategoryReferencedService 
{
    @Autowired
    private ArticleCategoryReferencedMapper articleCategoryReferencedMapper;

    /**
     * 查询文章分类 
     * 
     * @param acrId 文章分类 主键
     * @return 文章分类 
     */
    @Override
    public ArticleCategoryReferenced selectArticleCategoryReferencedByAcrId(Long acrId)
    {
        return articleCategoryReferencedMapper.selectArticleCategoryReferencedByAcrId(acrId);
    }

    /**
     * 查询文章分类 列表
     * 
     * @param articleCategoryReferenced 文章分类 
     * @return 文章分类 
     */
    @Override
    public List<ArticleCategoryReferenced> selectArticleCategoryReferencedList(ArticleCategoryReferenced articleCategoryReferenced)
    {
        return articleCategoryReferencedMapper.selectArticleCategoryReferencedList(articleCategoryReferenced);
    }

    /**
     * 新增文章分类 
     * 
     * @param articleCategoryReferenced 文章分类 
     * @return 结果
     */
    @Override
    public int insertArticleCategoryReferenced(ArticleCategoryReferenced articleCategoryReferenced)
    {
        return articleCategoryReferencedMapper.insertArticleCategoryReferenced(articleCategoryReferenced);
    }

    /**
     * 修改文章分类 
     * 
     * @param articleCategoryReferenced 文章分类 
     * @return 结果
     */
    @Override
    public int updateArticleCategoryReferenced(ArticleCategoryReferenced articleCategoryReferenced)
    {
        return articleCategoryReferencedMapper.updateArticleCategoryReferenced(articleCategoryReferenced);
    }

    /**
     * 批量删除文章分类 
     * 
     * @param acrIds 需要删除的文章分类 主键
     * @return 结果
     */
    @Override
    public int deleteArticleCategoryReferencedByAcrIds(Long[] acrIds)
    {
        return articleCategoryReferencedMapper.deleteArticleCategoryReferencedByAcrIds(acrIds);
    }

    /**
     * 删除文章分类 信息
     * 
     * @param acrId 文章分类 主键
     * @return 结果
     */
    @Override
    public int deleteArticleCategoryReferencedByAcrId(Long acrId)
    {
        return articleCategoryReferencedMapper.deleteArticleCategoryReferencedByAcrId(acrId);
    }
}
